<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MCS Courier ID-Badge generator</title>
<meta name="description" content="MCS Courier ID-Badge generator">
<meta name="keywords" content="MCS Courier ID-Badge generator">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="Erik Schoepplenberg">

<?php
	require_once('auth.php');
?>
<link rel="shortcut icon" href="http://badge.rockedge.org/images/mcs_logo_icon_80px.gif" type="image/x-icon" />

<script type='text/javascript'>

function SubmitForm()
{
    if(document.forms['contactus'].onsubmit())
    {
        showResultDiv();
        document.forms['contactus'].action='pr_sta_number_2.php';
        document.forms['contactus'].target='frame_result1';
        document.forms['contactus'].submit();

        document.forms['contactus'].action='display-name.php';
        document.forms['contactus'].target='frame_result2';
        document.forms['contactus'].submit();

        document.forms['contactus'].action='pr_photo2.php';
        document.forms['contactus'].target='frame_result3';
        document.forms['contactus'].submit();
    }
    return true;
}
</script>


<link rel="stylesheet" type="text/css" href="default.css" />
<style type="text/css">
a.style1:link{color:#000000;text-decoration: underline;}
a.style1:visited{color:#000000;text-decoration: underline;}
a.style1:hover{color:#FF0000;text-decoration: underline;}
a.style1:active{color:#800000;}
</style>


<script language="javascript" type="text/javascript">
<!--
function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->
</script>

<style type="text/css">
div#container
{
	position:relative;
	width: 823px;
	margin-top: 0px;
	margin-left: auto;
	margin-right: auto;
	text-align:center; 
}
body {text-align:center;margin:0}
</style>

</head>
<body>
<div id="container">
<div id="image2" style="position:absolute; overflow:hidden; left:432px; top:61px; width:383px; height:679px; z-index:0"><img src="images/paste14.jpg" alt="" title="" border=0 width=379 height=675 style="border:#000000 2px solid"></div>

<div id="roundrect1" style="position:absolute; overflow:hidden; left:0px; top:103px; width:404px; height:628px; z-index:1"><img border=0 width="100%" height="100%" alt="" src="images/roundrect35151531.png"></div>

<div id="iFrame1" style="position:absolute; left:512px; top:301px; z-index:2">
<iframe name="iFrame1" width="207" height="214" src="blank.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="text1" style="position:absolute; overflow:hidden; left:12px; top:145px; width:105px; height:36px; z-index:4">
<div class="wpmd">
<div align="right"><font face="Tahoma" class="ws16">Name:</font></div>
<div><font face="Tahoma" class="ws28"><BR></font></div>
</div></div>

<div id="text2" style="position:absolute; overflow:hidden; left:52px; top:187px; width:66px; height:29px; z-index:6">
<div class="wpmd">
<div align="right"><font face="Tahoma" class="ws14">STA#:</font></div>
</div></div>

<form name="Badge" target="iFrame2" method="POST" action="insert_name.php" style="margin:0px">
<input name="name" value="Joe Anyone" type="text" style="position:absolute; left:121px;top:145px;z-index:3">
<div id="formimage1" style="position:absolute; left:345px; top:151px; z-index:22"><input type="image" name="formimage1" width="16" height="16" src="images/form35151328.png"></div>
</form>

<div id="iFrame2" style="position:absolute; left:452px; top:516px; z-index:8">
<iframe name="iFrame2" width="342" height="43" src="blank2.php" scrolling="no" frameborder="0"></iframe>
</div>

<form name="sta" target="iFrame3" method="POST" action="insert_sta.php" style="width:198px; margin:0px">
</form>

<div id="iFrame3" style="position:absolute; left:435px; top:561px; z-index:10">
<iframe name="iFrame3" width="376" height="67" src="blank3.php" scrolling="no" frameborder="0"></iframe>
</div>

<form name="driver" target="iFrame4" method="POST" action="insert_driver.php" style="margin:0px">
<input name="driver" value="123" type="text" maxlength=4 style="position:absolute; left:121px;top:231px;z-index:13">
<div id="formimage3" style="position:absolute; left:345px; top:235px; z-index:23"><input type="image" name="formimage3" width="17" height="17" src="images/add.png"></div>
</form>

<div id="image4" style="position:absolute; overflow:hidden; left:372px; top:121px; width:16px; height:16px; z-index:12"><a href="#" title="Id badge generator"><img src="images/refresh.png" alt="" title="" border=0 width=16 height=16></a></div>

<div id="text5" class="wpmd" style="position:absolute; overflow:hidden; left:30px; top:231px; width:88px; height:29px; z-index:14">
<!--<div class="wpmd"> -->
<div align="right"><font face="Tahoma" class="ws14">Driver#:</font></div>
</div>
<!-- </div> -->

<div id="iFrame4" style="position:absolute; left:512px; top:261px; z-index:15">
<iframe name="iFrame4" width="206" height="39" src="blank4.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="text6" style="position:absolute; overflow:hidden; left:513px; top:701px; width:277px; height:27px; z-index:16">
<div class="wpmd">
<div><font face="Tahoma" class="ws8">If lost please return to: P.O. Box 5617, Bayview Station Bridgeport, CT 06610 or call: 800-875-2323</font></div>
</div></div>

<form name="form4" target="iFrame1" method="GET" action="uploader9.php" style="margin:0px">
</form>

<div id="image3" style="position:absolute; overflow:hidden; left:186px; top:0px; width:28px; height:47px; z-index:18"><img src="images/topmenu_img1.gif" alt="" title="" border=0 width=28 height=47></div>

<div id="image9" style="position:absolute; overflow:hidden; left:213px; top:0px; width:614px; height:47px; z-index:19"><img src="images/products_b.gif" alt="" title="" border=0 width=614 height=47></div>

<div id="image11" style="position:absolute; overflow:hidden; left:0px; top:0px; width:187px; height:47px; z-index:20"><img src="images/users_feedback_s.gif" alt="" title="" border=0 width=187 height=47></div>

<div id="text3" style="position:absolute; overflow:hidden; left:220px; top:0px; width:315px; height:39px; z-index:21">
<div class="wpmd">
<div><font color="#333300" face="Tahoma" class="ws22">ID-Badge Generator </font></div>
</div></div>

<div id="text7" style="position:absolute; overflow:hidden; left:12px; top:441px; width:172px; height:29px; z-index:24">
<div class="wpmd">
<div><font face="Tahoma" class="ws16">Upload photo :</font></div>
</div></div>

<div id="text10" style="position:absolute; overflow:hidden; left:572px; top:641px; width:203px; height:36px; z-index:25">
<div class="wpmd">
<div><font face="Tahoma" class="ws16">DOT#472822</font></div>
</div></div>

<div id="text4" style="position:absolute; overflow:hidden; left:262px; top:697px; width:135px; height:41px; z-index:26">
<div class="wpmd">
<div align="center"><font face="Tahoma" class="ws7"><a href="print_badge_7.php" title="" target="_blank" class="style1">Advanced print</a></font></div>
<!--<div align="center"><font face="Tahoma" class="ws14"><a href="rotate_jpg2.php" title="" target="iFrame1" class="style1">rotate</a></font></div> -->
</div></div>

<div id="image6" style="position:absolute; overflow:hidden; left:290px; top:629px; width:72px; height:72px; z-index:27"><a href="print_loader.php" title="set Badge to print" target="iFrame17"><img src="images/printer-icon2.png" alt="" title="" border=0 width=72 height=72></a></div>

<div id="roundrect2" style="position:absolute; overflow:hidden; left:10px; top:271px; width:385px; height:105px; z-index:28"><img border=0 width="100%" height="100%" alt="" src="images/roundrect35151187.png"></div>

<div id="text9" style="position:absolute; overflow:hidden; left:22px; top:343px; width:275px; height:32px; z-index:29">
<div class="wpmd">
<div><font color="#C0C0C0" face="Tahoma" class="ws12"><B>Independent Contractor for:</B></font></div>
</div></div>

<form name="indie" target="iFrame5" method="POST" action="dis_indie.php" style="margin:0px">
<div id="formimage4" style="position:absolute; left:305px; top:344px; z-index:33"><input type="image" name="formimage4" width="20" height="20" src="images/add.png"></div>
</form>

<div id="iFrame5" style="position:absolute; left:437px; top:141px; z-index:31">
<iframe name="iFrame5" width="374" height="35" src="blank4.php" scrolling="no" frameborder="0"></iframe>
</div>

<form name="indie_comp_name" target="iFrame6" method="POST" action="insert_indie.php" style="margin:0px">
<input name="indie" type="text" style="position:absolute;width:301px;left:19px;top:286px;z-index:32">
<div id="formimage5" style="position:absolute; left:331px; top:288px; z-index:36"><input type="image" name="formimage5" width="18" height="18" src="images/add.png"></div>
</form>

<div id="iFrame6" style="position:absolute; left:437px; top:112px; z-index:35">
<iframe name="iFrame6" width="373" height="28" src="blank4.php" scrolling="no" frameborder="0"></iframe>
</div>

<div id="image10" style="position:absolute; overflow:hidden; left:365px; top:288px; width:18px; height:18px; z-index:37"><a href="blank4.php" title="reset contractor field" target="iFrame6"><img src="images/refresh.png" alt="" title="" border=0 width=18 height=18></a></div>

<div id="image12" style="position:absolute; overflow:hidden; left:351px; top:344px; width:19px; height:22px; z-index:38"><a href="set_status.php" title="stop contractor field and prevents both contractor fields from displaying on print page." target="iFrame5"><img src="images/cancel.png" alt="" title="" border=0 width=19 height=22></a></div>

<div id="iFrame7" style="position:absolute; left:565px; top:666px; z-index:39">
<iframe name="iFrame7" width="194" height="27" src="exp_day.php" scrolling="no" frameborder="0"></iframe>
</div>

<form name="sta2" target="iFrame3" method="POST" action="pr_sta_number.php" style="margin:0px">
</form>

<div id="hr1" style="position:absolute; overflow:hidden; left:12px; top:881px; width:811px; height:17px; z-index:42">
<hr size=2 width=811 color="#000000">
</div>

<div id="text13" style="position:absolute; overflow:hidden; left:12px; top:321px; width:67px; height:22px; z-index:43">
<div class="wpmd">
<div align="right"><font color="#000000" face="DejaVu Sans" class="ws8"><B>(add text)</B></font></div>
</div></div>

<form name="form_data_edit" target="iFrame7" method="POST" action="display_exp_date.php" style="margin:0px">
<select name="month" style="position:absolute;left:27px;top:401px;width:97px;z-index:45">
<option value="1">January</option>
<option value="2">Febuary</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
<select name="day" style="position:absolute;left:134px;top:402px;width:51px;z-index:46">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="year" style="position:absolute;left:197px;top:402px;width:92px;z-index:47">
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
</select>
<div id="formimage7" style="position:absolute; left:314px; top:402px; z-index:48"><input type="image" name="formimage7" width="20" height="20" src="images/add.png"></div>
</form>

<div id="image8" style="position:absolute; overflow:hidden; left:349px; top:403px; width:18px; height:18px; z-index:49"><a href="exp_day.php" title="reset contractor field" target="iFrame7"><img src="images/refresh.png" alt="" title="" border=0 width=18 height=18></a></div>
<div id="image32" style="position:absolute; overflow:hidden; left:374px; top:402px; width:19px; height:22px; z-index:38"><a href="nodisplay_exp_date.php" title="stop Experation Date and prevents Experation Date fields from displaying on print page." target="iFrame7"><img src="images/cancel.png" alt="" title="" border=0 width=19 height=22></a></div>
<div id="text14" style="position:absolute; overflow:hidden; left:32px; top:381px; width:200px; height:27px; z-index:50">
<div class="wpmd">
<div><B>Edit Experation Date: </B></div>
</div></div>

<div id="html2" style="position:absolute; overflow:hidden; left:28px; top:572px; width:351px; height:65px; z-index:51">
<form name='selectbadge' id='selectbadge' method='post' action='iFrame' enctype='multipart/form-data' target='iFrame1'>
 <select name='badgedata[]' size='1'>
<?php
include "connect.php";

$tablename = "saved_badge_id";

  $query="SELECT * FROM $tablename ORDER BY `id` DESC LIMIT 0, 100 ";
      $result = mysql_query($query,$con) or die("query:" . mysql_error());
	  $num = mysql_numrows($result);

	  $i=0;
while ($i < $num) {

	$id = mysql_result($result,$i,"id");
	$name= mysql_result($result,$i,"name");
	$driver_id = mysql_result($result,$i,"driver_id");
	$sta = mysql_result($result,$i,"sta");
	$photo = mysql_result($result,$i,"photo");
	$indie_con = mysql_result($result,$i,"indie_con");
	$status = mysql_result($result,$i,"status");
	$flag = mysql_result($result,$i,"flag");
	$exp_date = mysql_result($result,$i,"exp_date");
	$creation_date = mysql_result($result,$i,"creation_date");


 $badgedata = array($name,$driver_id,$sta,$photo,$indie_con,$status,$flag,$exp_date,$creation_date);

         $postbadgedata =  implode(',', $badgedata);
         $value = $badgedata[0].':'.$badgedata[8];
      echo "<option value='$postbadgedata'>".$value."</option>";

$i++;
}
?>
</select>

<p><input type='button' name='Submit' value='Load Saved Badge' onclick='javascript: return SubmitForm()' /></P>

</form></div>

<div id="html1" style="position:absolute; overflow:hidden; left:12px; top:481px; width:378px; height:57px; z-index:52">
<form name="form1" method="post" action="insert_photo6.php" enctype="multipart/form-data" style="margin:0px" target=iFrame1>
<input name="datei" type="file" >
<input name="formbutton1" type="submit" value="Upload!" >
<input name="formbutton2" type="reset" value="Clear" >
</form></div>

<div id="text15" style="position:absolute; overflow:hidden; left:12px; top:544px; width:240px; height:31px; z-index:53">
<div class="wpmd">
<div><font face="Tahoma" class="ws14">Load Saved Badge :</font></div>
</div></div>

<form name="check_sta_format" target="iFrame3" method="POST" action="check_sta_format.php" style="margin:0px">
<input name="sta" value="0123456789ab" type="text" maxlength=12 style="position:absolute;left:121px;top:183px;z-index:5">
<div id="formimage6" style="position:absolute; left:345px; top:186px; z-index:41"><input type="image" name="pr_number" width="16" height="16" src="images/add.png"></div>
<input type="hidden" name="formradio1" value="1">
</form>

<!--<div id="nav20d" style="position:absolute; left:473px; top:22px; z-index:55"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav20','','images/nav351507960a.gif',1)" href="editor.php"><img name="nav20" onLoad="MM_preloadImages('images/nav351507960a.gif')" alt="" border=0 src="images/nav351507960i.gif"></a></div> -->
<div id="nav21d" style="position:absolute; left:589px; top:22px; z-index:55"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav21','','images/nav351507961a.gif',1)" href="badge_manager.php"><img name="nav21" onLoad="MM_preloadImages('images/nav351507961a.gif')" alt="" border=0 src="images/nav351507961i.gif"></a></div>
<div id="nav22d" style="position:absolute; left:705px; top:22px; z-index:55"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav22','','images/nav351507962a.gif',1)" href="logout.php"><img name="nav22" onLoad="MM_preloadImages('images/nav351507962a.gif')" alt="" border=0 src="images/nav351507962i.gif"></a></div>

<div id="image1" style="position:absolute; overflow:hidden; left:1px; top:42px; width:187px; height:43px; z-index:57"><a href="http://www.mcscourier.com/"><img src="images/logo-mcs.gif" alt="" title="" border=0 width=187 height=43></a></div>

</div>

<div id="iFrame17" style="position:absolute; left:447px; top:667px; z-index:39">
<iframe name="iFrame17" width="240" height="37" src="blank4.php" scrolling="no" frameborder="0"></iframe>
</div>

<div>
<form name="save_badge" target="iFrame17" method="POST" action="set_save_badge.php" style="margin:0px">
<input name="formbutton1" type="submit" value="Save  Badge" style="position:absolute;left:960px;top:760px;z-index:30">
</form>
</div>



<script type='text/javascript'>

function SubmitForm()
{


        document.forms['selectbadge'].action='display-sta_multi.php';
        document.forms['selectbadge'].target='iFrame3';
        document.forms['selectbadge'].submit();

        document.forms['selectbadge'].action='display-name_multi.php';
        document.forms['selectbadge'].target='iFrame2';
        document.forms['selectbadge'].submit();

        document.forms['selectbadge'].action='display-photo_multi.php';
        document.forms['selectbadge'].target='iFrame1';
        document.forms['selectbadge'].submit();
        
        document.forms['selectbadge'].action='display-indie_multi.php';
        document.forms['selectbadge'].target='iFrame6';
        document.forms['selectbadge'].submit();
        
        document.forms['selectbadge'].action='display-indiebanner_multi.php';
        document.forms['selectbadge'].target='iFrame5';
        document.forms['selectbadge'].submit();
        
        
        document.forms['selectbadge'].action='display-exp_date_multi.php';
        document.forms['selectbadge'].target='iFrame7';
        document.forms['selectbadge'].submit();
        
        document.forms['selectbadge'].action='display-driverid_multi.php';
        document.forms['selectbadge'].target='iFrame4';
        document.forms['selectbadge'].submit();
        
        document.forms['selectbadge'].action='blank4.php';
        document.forms['selectbadge'].target='iFrame17';
        document.forms['selectbadge'].submit();

}
</script>
</body>
</html>
